import request from '@/utils/request'

/**登录接口 */
let login = async (params) => {
    let result = await request({
        method: 'POST',
        url: '/user/login',
        data: {
            ...params
        }
    })
    return result
}
/**注册接口 */
let signin = async (params) => {
    let result = await request({
        method: 'POST',
        url: '/user/signin',
        data: {
            ...params
        }
    })
    return result
}

export default {
    login,
    signin
}
